home *** CD-ROM | disk | FTP | other *** search
/ Acorn User: China / Acorn User China CD-ROM (UK) (Disc B) / Acorn User China CD-ROM (UK) (Disc B).bin / BARNET / ARMLINUX / MAIL / 9806 / text0005.txt < prev    next >
Encoding:
Text File  |  1998-06-30  |  2.0 KB  |  49 lines

  1. On Mon, 1 Jun 1998, Sam Kington wrote:
  2.  
  3. > Matthew Godbolt wrote:
  4. > > 
  5. > > Has anyone considered putting LongFiles support into the ADFS
  6. > > filesystem?  If not, I'm looking for a chance to get into kernel hacking
  7. > > so I volunteer myself.
  8. > Isn't there already some method of handling image file systems? ISTR
  9. > someone muttering about the loopback mechanism as a method of doing
  10. > this, unless I was terminally confused.
  11.  
  12. Longfilenames isn't an image filing system.  It works as a module, 
  13. probably sitting on the FileV and all the other vectors (under RiscOS) 
  14. which are anything to do with filenames.  It detects the user trying to 
  15. create/copy/whatever a file with a long filename and if there is going to 
  16. be one in directory A, it creates a file called '!!!!!!!!Z!' in the 
  17. directory, which contains mappings of short filenames to long filenames, 
  18. and names the file whose filename is to be long as (C)JPT_xxx where xxx 
  19. starts from 000 and goes up to 009, then 00a etc etc.  Then, when 
  20. filename information is requested is modifies the data returned by 
  21. FileCore so all the (C)JPT_ files are changed to their long equivalents.  
  22. And, of course, it forces the !!!!!!!!Z! file to never be displayed.
  23.  
  24. Unfortunately this way of doing things is a pain when mounting filecore 
  25. partitions under linux, since a longfilenamed directory's long filenamed 
  26. files are just (C)JPT_xxx, and so you can't tell what they really are 
  27. except by either taking a look at the file or by lessing the !!!!!!!!Z! 
  28. file (if you understand the file format) which is a pain in the neck, 
  29. since it requires you to escape EVERY ! in the filename, like so:
  30.  
  31. less \!\!\!\!\!\!\!\!Z\!
  32.  
  33. Erk!
  34.  
  35. So best of luck with it Matt - it'll be useful :-)
  36.  
  37.  
  38. -- 
  39. Rule of programming #4: The length of time taken to find a bug is
  40.     directly proportional to its simplicity.
  41.  
  42. Phil Norman, mailing from Exeter University.
  43. email:    forrey@eh.org
  44. URL:    http://newton.ex.ac.uk/general/ug/norman
  45.  
  46. unsubscribe: body of `unsubscribe linux-arm' to majordomo@vger.rutgers.edu
  47.  
  48.